package org.dubnation.car.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.dubnation.base.domain.BaseDomain;


import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhu
 * @since 2023-11-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class CarDetail extends BaseDomain{

    private static final long serialVersionUID = 1L;


    private Long id;
    /**
     * 基本信息
     */
    private String info;
    private Long carId;
    /**
     * 车辆标题
     */
    private String carTitle;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date detectiontime;
    private Long detectorId;
    /**
     * 检测员名称
     */

    private String detectorName;
    /**
     * 事故排查 图片地址
     */
    @NotNull(message = "请输入事故排查结果!")
    private String accidentInvestigation;
    /**
     * 核心部件检测
     */
    @NotNull(message = "请输入核心部件检测结果!")
    private String coreComponentsInvestigation;
    /**
     * 常用功能检测
     */
    @NotNull(message = "请输入常用功能检测结果!")
    private String commonFunctionsInvestigation;
    /**
     * 外观内饰检测
     */
    @NotNull(message = "请输入外观内饰检测结果!")
    private String appearanceInspection;

    /**
     * 是否可以上架 0为不满足, 1为满足
     */
    @NotNull(message = "请选择是否满足上架要求!")
    private Integer meetOnSaleRequirements;
}
